<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>商务通生成页!!!</title>
	</head>

	<body>
		<h2 align="center">
			商务通生成页
		</h2>
		<br>
		<hr>
		<a href="index.jsp">首頁</a>
		<form action="UpSwt" method="post">
			<c:if test="${! empty swt}">
				<table>
					<tr>
						<td>
							位&nbsp;置&nbsp;名&nbsp;称&nbsp;：
						</td>
						<td>
							<input type="text" name="pathname" size="100"
								value="${swt.pathname}">
							<input type="hidden" id="id" name="id" value="${swt.id }">
						</td>
					</tr>
					<tr>
						<td>
							网&nbsp;站&nbsp;名&nbsp;称&nbsp;：
						</td>
						<td>
							<input type="text" name="webname" size="100"
								value="${swt.webname }">
						</td>
					</tr>
					<tr>
						<td>
							网&nbsp;站&nbsp;网&nbsp;址&nbsp;：
						</td>
						<td>
							<input type="text" name="weburl" size="100"
								value="${swt.weburl }">
							&nbsp;&nbsp;!只为专一
						</td>
					</tr>
					<tr>
						<td>
							商务通代码：
						</td>
						<td>
							<input type="text" name="swtjs" size="100" value="${swt.swtjs }">
						</td>
					</tr>
					<tr>
						<td>
							编&nbsp;码&nbsp;格&nbsp;式&nbsp;：
						</td>
						<td>
							<input type="text" name="bmgs" size="100" value="${swt.bmgs }">
						</td>
					</tr>
					<tr>
						<td>
							<img src="imgs/ioc/1.gif" width="16" height="16">客&nbsp;戶&nbsp;代&nbsp;碼&nbsp;：
						</td>
						<td>
							<input type="text" name="khdm" size="100" value="${swt.khdm }">
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							<input type="submit" value="給我走">
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="reset" value="取消">
						</td>
					</tr>
				</table>
			</c:if>
			</form>
			<form action="CreateSWTServlet" method="post">
			<c:if test="${empty swt}">
				<table>
					<tr>
						<td>
							位&nbsp;置&nbsp;名&nbsp;称&nbsp;：
						</td>
						<td>
							<input type="text" name="pathname" size="100">
						</td>
					</tr>
					<tr>
						<td>
							网&nbsp;站&nbsp;名&nbsp;称&nbsp;：
						</td>
						<td>
							<input type="text" name="webname" size="100">
						</td>
					</tr>
					<tr>
						<td>
							网&nbsp;站&nbsp;网&nbsp;址&nbsp;：
						</td>
						<td>
							<input type="text" name="weburl" size="100">
							&nbsp;&nbsp;!只为专一
						</td>
					</tr>
					<tr>
						<td>
							商务通代码：
						</td>
						<td>
							<input type="text" name="swtjs" size="100">
						</td>
					</tr>
					<tr>
						<td>
							编&nbsp;码&nbsp;格&nbsp;式&nbsp;：
						</td>
						<td>
							<input type="text" name="bmgs" size="100">
						</td>
					</tr>
					<tr>
						<td>
							<img src="imgs/ioc/1.gif" width="16" height="16">客&nbsp;戶&nbsp;代&nbsp;碼&nbsp;：
						</td>
						<td>
							<input type="text" name="khdm" size="100">
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							<input type="submit" value="給我走">
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="reset" value="取消">
						</td>
					</tr>
				</table>
			</c:if>
		</form>
	</body>
</html>
